/*
 * status_define.h
 *
 *  Created on: 2010-12-17
 *      Author: minfang
 */

#ifndef STATUS_DEFINE_H_
#define STATUS_DEFINE_H_


#define STATUS_ALARM_ENABLE 1    // NIGHT
#define STATUS_ALARM_DISABLE 0   // DAY


#define STATUS_KEYBOARD_RELEASE (1 << KEY_PORT)  // No touch, keep high




//// hold key more than 2 second , STATUS OF SETUP WILL PLUS TO NEXT STATUS, IF STATUS >4, GO TO STATUS_SETUP_START_ALARM_TEMP (loop)

#define STATUS_SETUP_START_ALARM_LOW_TEMP 1

#define STATUS_SETUP_STOP_ALARM_LOW_TEMP 2

#define STATUS_SETUP_START_ALARM_HIGH_TEMP 3

#define STATUS_SETUP_STOP_ALARM_HIGH_TEMP 4

#define STATUS_SETUP_START_NIGHT 5

#define STATUS_SETUP_START_DAY 6

#define STATUS_SETUP_NO_WARN_CAP_TIME 7




#define STATUS_SETUP_LAST STATUS_SETUP_NO_WARN_CAP_TIME
#define STATUS_SETUP_FIRST STATUS_SETUP_START_ALARM_LOW_TEMP







#define STATUS_SHOW_TEMP 0    // hold key more than 4 seconds, convert to STATUS_SHOW_SETTING ,  one click will convert to STATUS_SHOW_LIGHT
#define STATUS_SHOW_LIGHT 1   // hold key more than 4 seconds, turn on speaker (for testing),  one click will convert to STATUS_SHOW_TEMP
#define STATUS_SHOW_SETTING 2    // hold key more than 4 seconds, convert to STATUS_SHOW_TEMP


#define STATUS_TEMP_DEVICE_USING 1 //
#define STATUS_TEMP_DEVICE_UNUSING 0 //

#define STATUS_KEY_MESSAGE_NO  0
#define STATUS_KEY_MESSAGE_SHORT 1
#define STATUS_KEY_MESSAGE_LONG 2


#define STATUS_BLINK_SITE1 1
#define STATUS_BLINK_SITE2 2
#define STATUS_BLINK_SITE3 3



#define STATUS_WARNING_NO_WARNING 0
#define STATUS_WARNING_LOW_WARNING 1
#define STATUS_WARNING_HIGH_WARNING 2
#define STATUS_WARNING_WARNING_CAP 3


#define STATUS_DAY_NIGHT_DAY 0
#define STATUS_DAY_NIGHT_NIGHT 1



#endif /* STATUS_DEFINE_H_ */
